<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<f:view contentType="text/html">

	<h:head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="style/default.css"
			media="screen" />
		<link rel="shortcut icon" href="./img/favicon.ico" type="image/x-icon" />


		<title>PrimeFaces - MovieCollector</title>
		<ui:insert name="head"></ui:insert>
		<style type="text/css">
.new {
	background: url(img/new.png) no-repeat;
}

.search {
	background: url(img/search.png) no-repeat;
}
</style>
	</h:head>

	<h:body>

		<div class="outer-container">

			<div class="inner-container">

				<div class="header">
					<div class="title">
						<span class="sitename"><a href="index.html">PrimeFaces</a>
						</span>
						<div class="slogan">MovieCollector</div>
					</div>
				</div>
				<div>
					<h:form>
						<p:menubar id="menu">
							<p:submenu label="Movies">
								<p:menuitem value="Create" url="/createMovie.jsf"
									styleClass="new"></p:menuitem>
								<p:menuitem value="Manage" url="/manageMovies.jsf"
									styleClass="search"></p:menuitem>
							</p:submenu>
							<p:submenu label="Options">
								<p:menuitem value="Source" url="/source.jsf"></p:menuitem>
								<p:menuitem value="Logout" url="/logout"></p:menuitem>
							</p:submenu>
						</p:menubar>
						<p:menu>
							<p:submenu label="Ajax Menuitems">
								<p:menuitem value="Save" actionListener="#{buttonBean.save}"
									update="messages" icon="ui-icon ui-icon-disk" />
								<p:menuitem value="Update" actionListener="#{buttonBean.update}"
									update="messages" icon="ui-icon ui-icon-arrowrefresh-1-w" />
							</p:submenu>
							<p:submenu label="Non-Ajax Menuitem">
								<p:menuitem value="Delete" actionListener="#{buttonBean.delete}"
									update="messages" ajax="false" icon="ui-icon ui-icon-close" />
							</p:submenu>
							<p:submenu label="Navigations">
								<p:menuitem value="Home" url="http://www.primefaces.org"
									icon="ui-icon ui-icon-home" />
								<p:menuitem value="TouchFaces"
									url="#{request.contextPath}/touch" icon="ui-icon ui-icon-star" />
							</p:submenu>
						</p:menu>
					</h:form>
				</div>
				<div class="main">

					<div class="content">
						<ui:insert name="content">
						</ui:insert>
					</div>

					<div class="clearer"></div>

				</div>

				<div class="footer">
					<span class="left">Powered by <a
						href="http://primefaces.prime.com.tr">PrimeFaces</a> </span> <span
						class="right"> <p:ajaxStatus>
							<f:facet name="start">
								<h:graphicImage value="img/ajax-loader.gif" />
							</f:facet>

							<f:facet name="complete">
									Status
								</f:facet>
						</p:ajaxStatus> </span>

					<div class="clearer"></div>

				</div>

			</div>

		</div>

	</h:body>
</f:view>

</html>